<script type="text/javascript">
	$(document).ready(function() {
	     lun.init(); 
	     if(${lun.qosType}==0){lun.validateIops(); 
	     }else{lun.validateBandWidth(); 
	     }
		// lun.validateQos(); 
	});
	
</script>

<div>
&nbsp;<@spring.message code='lun.selectQosType'/>:&nbsp;&nbsp;&nbsp;&nbsp;	
<input id="box" name="qosType">

</div>
<input id="qosReadHidden" type="hidden" name="id" value="${lun.qosRead}" />
<input id="qosWriteHidden" type="hidden" name="id" value="${lun.qosWrite}" />

<form method="post" id="qosForm"
	action="${basePath}/cluster/lun/qosByNameAndPoolName">
	<div class="main_Receipt_table" id="base">
	<!--  <input id="id" type="hidden" name="id" value="${lun.id}" />
	<input id="name" type="hidden" name="name" value="${lun.name}" />
	<input id="poolName" type="hidden" name="poolName" value="${lun.poolName}" />
	<input id="size" type="hidden" name="size" value="${lun.size}" />
	<input id="objectSize" type="hidden" name="objectSize" value="${lun.objectSize}" /> 
	 -->
	 <input id="id" type="hidden" name="id" value="${lun.id}" >
	 <input id="name" type="hidden" name="name" value="${lun.name}" />
     <input id="poolName" type="hidden" name="poolName" value="${lun.poolName}" />
	  <input id="qosType" type="hidden" name="qosTypeName" value="${lun.qosType}" /> 
		<div class="main_Receipt_table_m">
		
		<div id="contentQos">
		
<#if lun.qosType=0>
 <input id="iopsId" type="hidden" name="qosType" value="${lun.qosType}"/> 
 
			 <table id="iopsTable" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message code='lun.read'/><span
							class="color_red">*</span></th>
						<td style="width: 85%;"><input id="qosRead" type="text"
							name="qosRead" value="${lun.qosRead}" /></td>
					</tr>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message code='lun.write'/><span
							class="color_red">*</span></th>
						<td style="width: 85%;"><input id="qosWrite" type="text" 
							name="qosWrite" value="${lun.qosWrite}" /></td>
					</tr>
				</tbody>
			</table> 
			
<#else>
 <input id="bandwidthId" type="hidden" name="qosType" value="${lun.qosType}"/> 

			 <table id="iopsTable" border="0" cellspacing="0" cellpadding="0">
				<tbody>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message code='lun.read'/><span
							class="color_red">*</span></th>
						<td style="width: 85%;">&nbsp;<input id="qosRead" type="text"
							name="qosRead" value="${lun.qosRead}" /></td>
					</tr>
					<tr>
						<th style="width: 35%;" scope="row"><@spring.message code='lun.write'/><span
							class="color_red">*</span></th>
						<td style="width: 85%;">&nbsp;<input id="qosWrite" type="text" 
							name="qosWrite" value="${lun.qosWrite}" /></td>
					</tr>
				</tbody>
			</table> 
</#if>
		</div>
			
		</div>
	</div>
</form>

